testfilechooserbutton: Remove GtkMisc API usage
authorTimm Bäder <mail@baedert.org>
Mon, 3 Oct 2016 10:34:30 +0000 (12:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
tests/testfilechooserbutton.c

index 6a02d46b67ff123b80bc37c088e347fe3e328ba9..ec537aab9af56f7634d4fa774550930faa0bd72d 100644 (file)
@@ -273,9 +273,7 @@ main (int   argc,
 
   label = gtk_label_new_with_mnemonic ("_Open:");
   gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE);
 
   chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
@@ -300,9 +298,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
   label = gtk_label_new_with_mnemonic ("Select _Folder:");
   gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE);
 
   chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",